namespace PickGold.Charting.Design
{
    using System;
    using System.ComponentModel;
    using System.Web.UI.Design;

    internal class UrlValueEditor : UrlEditor
    {
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            if (Chart.ControlCurrentContext != null)
            {
                return base.EditValue(Chart.ControlCurrentContext, provider, value);
            }
            return base.EditValue(context, provider, value);
        }
    }
}

